export default {
  // 保存点击的字母
  saveLetter: function (state, letter) {
    state.letter = letter
  },
  // 设置当前城市
  saveCity: function (state, city) {
    state.city = city
    try {
      localStorage.city = city
    } catch (e) {
    }
  },
  // 控制banner预览界面的显示与隐藏
  setShowGallary: function (state, show) {
    state.showGallary = show
  },
  // 保存详细界面数据
  saveDetailList: function (state, data) {
    state.detailList = data
    state.detailLength = data.gallaryImgs.length
  }
}
